> rand(2,4) 1 0.647 0.0369 0.665 0.975 0.333 0.162 0.0847 > rand(2,4) 0.204 0.655 0.91 0.299 0.167 0.129 0.112 0.265 > srand(1); > // Reset the seed. > rand(2,4) 1 0.647 0.0369 0.665 0.975 0.333 0.162 0.0847 > srand("clock") 1 > rand(2,4) 0.366 0.803 0.34 0.0192 0.372 0.51 0.362 0.575See also: Page
rand()
.